import { showProgressBar, closeProgressBar } from '~/components/progressBar/index'
// import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { type App } from 'vue'
import SvgIcon from '@/components/svg-icon/index.vue'
import TfPagination from '@/components/TfPagination/index.vue'
export default {
  install (app: App<Element>) {
    app.config.globalProperties.$showProgressBar = showProgressBar
    app.config.globalProperties.$closeProgressBar = closeProgressBar
    app.component('SvgIcon', SvgIcon)
    app.component('TfPagination', TfPagination)
    // 注册element-plus图标
    // for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    //   console.log('==============', key)
    //   app.component(key, component)
    // }
  }
}
